﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;


namespace LevelEditor.Classes
{
    public class GameObject
    {
        private string _name;
        private string _file;
        private char _symbol;
        private Texture2D _sprite;
        private Vector2 _position;

        public GameObject()
        {
            _name = String.Empty;
            _file = String.Empty;
            _symbol = ' ';
        }

        public GameObject(string name, string file, char symbol)
        {
            _name = name;
            _file = file;
            _symbol = symbol;
        }

        public void LoadContent(ContentManager content)
        {
            _sprite = content.Load<Texture2D>(_file);
        }

        public void Draw(SpriteBatch sb)
        {
            sb.Draw(_sprite, _position, Color.White);
        }
    }
}
